﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Memorandum.controls
{
    /// <summary>
    /// RemindCatalog.xaml 的交互逻辑
    /// </summary>
    public partial class RemindCatalog : UserControl
    {
        public RemindCatalog()
        {
            InitializeComponent();
        }


        public string ImgUrl
        {
            get { return (string)GetValue(ImgUrlProperty); }
            set { SetValue(ImgUrlProperty, value); }
        }

        // Using a DependencyProperty as the backing store for ImgUrl.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ImgUrlProperty =
            DependencyProperty.Register("ImgUrl", typeof(string), typeof(RemindCatalog), new PropertyMetadata(null));



        public string Title
        {
            get { return (string)GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Title.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty TitleProperty =
            DependencyProperty.Register("Title", typeof(string), typeof(RemindCatalog), new PropertyMetadata(null));



        public string NavUrl
        {
            get { return (string)GetValue(NavUrlProperty); }
            set { SetValue(NavUrlProperty, value); }
        }

        // Using a DependencyProperty as the backing store for MyProperty.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty NavUrlProperty =
            DependencyProperty.Register("NavUrl", typeof(string ), typeof(RemindCatalog), new PropertyMetadata(null));



        public ICommand GoNav
        {
            get { return (ICommand)GetValue(GoNavProperty); }
            set { SetValue(GoNavProperty, value); }
        }

        // Using a DependencyProperty as the backing store for GoNav.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty GoNavProperty =
            DependencyProperty.Register("GoNav", typeof(ICommand), typeof(RemindCatalog) );


    }
}
